package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.BuCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/bu/category")
@Api(tags = "category",description = "分类表")
public class BuCategoryController {
    @Autowired
    private BuCategoryService buCategoryService;


    /**
     * 商家端：分列表查询
     * @return
     */
    @GetMapping("/list")
    @ApiOperation("商家端：分类表查询")
    public ResponseResult categoryList(){
        return buCategoryService.categoryList();
    }
}
